package com.zxl.always.on.display.constant;

import com.zxl.always.on.display.ApplicationHelper;
import com.zxl.always.on.display.tools.StorageAddressUtil;

/**
 * Created by Administrator on 2016/7/5.
 */
public interface LockerEnv {

    /**
     * 自定义包名
     */
    interface Package {

        String PACKAGE_NAME = ApplicationHelper.getContext().getPackageName();
    }

    interface Process {

        String CORE_PROCESS = "com.android.core";

        String SCREEN_PROCESS = "com.android.screen";
    }

    interface Path {

        String ROOT_PATH = StorageAddressUtil.getStorage(ISharedPreferences.SP_DEFAULT_MULTI_PROCESS, "sdcard_path");

        String APP_PATH = ROOT_PATH + "/display/";

        String STORE_PATH = APP_PATH + "image/";

        String IMAGE_TMP = STORE_PATH + "image.tmp";

        String IMAGE_SHOW = STORE_PATH + "image.image";

    }

    interface Url {

        String QQ_SELF_URL = "http://app.qq.com/#id=detail&appid=1105585441";

    }

    /**
     * Market搜索用到的常量
     *
     */
    interface Market {

        // 用包名搜索market上的软件
        public static final String BY_PKGNAME = "market://search?q=pname:";

        // 直接使用关键字搜索market上的软件
        public static final String BY_KEYWORD = "market://search?q=";

        // 进入软件详细页面
        public static final String APP_DETAIL = "market://details?id=";
    }
}
